﻿@model FlashCards.WebApp.Models.AddCategoryModel

@{
    ViewBag.Title = "AddCategory";
}
<h2>
    AddCategory</h2>
@using (Html.BeginForm())
{ 
    @Html.Label("Name")
    @Html.Editor("Name")
    <br />
    @Html.Label("Parent")
    @Html.DropDownListFor(x => x.SelectedItemId, new SelectList(Model.Categories, "Id", "Name"))
    <br />
    <input value="Add" type="submit" />
}
